package lab02.test27;

import com.sun.scenario.effect.impl.sw.sse.SSEBlend_SRC_OUTPeer;

import java.util.InputMismatchException;
import java.util.Scanner;

/**
 * Created by 邱雅婷 on 2017/11/2.
 */
public class Test {
    public static void main(String[] args) {
        int a=0;

        Scanner scanner=new Scanner(System.in);

        System.out.println("please input an int:");
        try{
            a=scanner.nextInt();

        }catch(InputMismatchException e){
            System.out.println("类型是不匹配的！");
        }finally {

            System.out.println("a=" + a);
        }
    }
}
